package top.lixunda.common.permission.annotation;

import java.lang.annotation.*;

/**
 * <p>
 * 用于标注controller中方法的参数，标注了该注解的参数会进行验证
 * </p>
 *
 * @author Xumda
 * @version time:2019/12/9 11:14
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface XumIpPermission {

    String[] denyIP() default {};

    String[] allowIP() default {};

    String denyIpStart() default "";

    String denyIpEnd() default "";

    String allowIpStart() default "";

    String allowIpEnd() default "";

    int httpCode() default 0;

    int messageCode() default 0;

    String message() default "";

}
